package com.zhongyouyun.admin.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhongyouyun.admin.model.RoleModel;
import com.zhongyouyun.admin.model.UserModel;
import com.zhongyouyun.admin.model.UserRoleModel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyouyun.admin.pojo.UserPojo;
import com.zhongyouyun.admin.pojo.UserRolePojo;

import java.util.List;
import java.util.Map;

/**
 * @Author: shenyi
 * @Date: 2021-09-23
 * @Description: 用户角色中间表服务类
 */

public interface UserRoleService extends IService<UserRoleModel> {

    IPage<UserRoleModel> selectPage(Page<UserRoleModel> userPage, QueryWrapper<UserRoleModel> queryWrapper);

    List<UserRoleModel> selectList(QueryWrapper<UserRoleModel> queryWrapper);



    IPage<UserRolePojo> selectPojoPage(Page page, QueryWrapper queryWrapper);
}
